<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
div{
    height: 200px;
    width: 300px;
    margin: 10px;
    float: left;
    overflow: hidden;
}
div img{
    height: 100%;
    width: 100%;
    transition: all 2s;

}
div:hover img{      
    transform: scale(1.2);
    /* transform: translateX(50px); */
   
}
    </style>
</head>
<body>
 <div>
     <a href="javascript:;"><img src="../media/dog.jpg" alt=""></a>
 </div>
 <div>
    <a href="javascript:;"><img src="../media/dog.jpg" alt=""></a>
</div><div>
    <a href="javascript:;"><img src="../media/dog.jpg" alt=""></a>
</div>
</body>
</html>